package com.ruoyi.resume.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.resume.mapper.BoleResumeProjectMapper;
import com.ruoyi.resume.domain.BoleResumeProject;
import com.ruoyi.resume.service.IBoleResumeProjectService;

/**
 * 项目经历Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-01
 */
@Service
public class BoleResumeProjectServiceImpl implements IBoleResumeProjectService 
{
    @Autowired
    private BoleResumeProjectMapper boleResumeProjectMapper;

    /**
     * 查询项目经历
     * 
     * @param id 项目经历主键
     * @return 项目经历
     */
    @Override
    public BoleResumeProject selectBoleResumeProjectById(Long id)
    {
        return boleResumeProjectMapper.selectBoleResumeProjectById(id);
    }

    /**
     * 查询项目经历列表
     * 
     * @param boleResumeProject 项目经历
     * @return 项目经历
     */
    @Override
    public List<BoleResumeProject> selectBoleResumeProjectList(BoleResumeProject boleResumeProject)
    {
        return boleResumeProjectMapper.selectBoleResumeProjectList(boleResumeProject);
    }

    /**
     * 新增项目经历
     * 
     * @param boleResumeProject 项目经历
     * @return 结果
     */
    @Override
    public int insertBoleResumeProject(BoleResumeProject boleResumeProject)
    {
        return boleResumeProjectMapper.insertBoleResumeProject(boleResumeProject);
    }

    /**
     * 修改项目经历
     * 
     * @param boleResumeProject 项目经历
     * @return 结果
     */
    @Override
    public int updateBoleResumeProject(BoleResumeProject boleResumeProject)
    {
        return boleResumeProjectMapper.updateBoleResumeProject(boleResumeProject);
    }

    /**
     * 批量删除项目经历
     * 
     * @param ids 需要删除的项目经历主键
     * @return 结果
     */
    @Override
    public int deleteBoleResumeProjectByIds(Long[] ids)
    {
        return boleResumeProjectMapper.deleteBoleResumeProjectByIds(ids);
    }

    /**
     * 删除项目经历信息
     * 
     * @param id 项目经历主键
     * @return 结果
     */
    @Override
    public int deleteBoleResumeProjectById(Long id)
    {
        return boleResumeProjectMapper.deleteBoleResumeProjectById(id);
    }
}
